package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 库存明细表
 */
@Data
@TableName("t_inventoryInfo")
public class InventoryInfoBean {
    /**
     * id
     */
    @TableId(value = "pk_productInfoId",type = IdType.AUTO)
    private Integer id;
    /**
     * 产品编号
     */
    @TableField("fk_productNum")
    private String productNum;
    /**
     * 商品编号
     */
    @TableField("productId")
    private String productId;
    /**
     * 商品名
     */
    @TableField("productName")
    private String productName;
    /**
     * 颜色
     */
    @TableField("color")
    private String color;
    /**
     * 大小
     */
    @TableField("size")
    private String size;
    /**
     * 商品数量
     */
    @TableField("productInfoNum")
    private int productInfoNum;
    /**
     * 商品价格
     */
    @TableField("price")
    private int price;
    /**
     * 供应商名字
     */
    @TableField("supplier")
    private String supplier;

    public InventoryInfoBean() {
    }

    public InventoryInfoBean(String color) {
        this.color = color;
    }

    public InventoryInfoBean(String productNum, String productId, String productName, String color, String size, int productInfoNum, int price, String supplier) {
        this.productNum = productNum;
        this.productId = productId;
        this.productName = productName;
        this.color = color;
        this.size = size;
        this.productInfoNum = productInfoNum;
        this.price = price;
        this.supplier = supplier;
    }
    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getFk_productNum() {
        return productNum;
    }

    public void setFk_productNum(String fk_productNum) {
        this.productNum = fk_productNum;
    }
}
